package com.powernode.business.service;

import com.powernode.business.domain.Check;
import com.powernode.business.vo.CheckVo;
import com.powernode.common.core.domain.model.LoginUser;

import java.util.List;

public interface CheckService{


    int deleteByPrimaryKey(Integer id);

    int insert(Check record);

    int insertSelective(Check record);

    Check selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Check record);

    int updateByPrimaryKey(Check record);

    /**
     * 根据出租单号查询相关信息
     * @param rentSn
     * @return
     */
    CheckVo checkRentSn(String rentSn);

    /**
     * 车辆入库
     * @param check
     */
    void carBack(Check check);

    List<Check> selectcrCheck(Check check, LoginUser loginUser);

    /**
     * 删除检查单
     * @param id
     * @param username
     * @return
     */
    int deleteCheck(List<Integer> id, String username);
}
